﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using MediSIIM.BaseBiz;

namespace SIIMWeb.YIBAO
{
    public class InXml
    {
        /// <summary>
        /// 目录代码对照:[操作员代码、操作员姓名、操作日期、医院编码、产地代码、医院名称、医保编码]
        /// </summary>
        public const string ZLDMDZ = "<?xml version=\"1.0\" encoding=\"utf-8\" ?> " +
           " <{0}_IN>" +
"  <BASEINFO>                                                   " +
"    <CAOZUOYDM>{1}</CAOZUOYDM>          " +
"    <CAOZUOYXM>{2}</CAOZUOYXM>        " +
"    <CAOZUORQ>{3:yyyy-MM-dd}</CAOZUORQ>       " +
"    <FENYUANDM>0</FENYUANDM>                   " +
"    <XITONGBS>1</XITONGBS>                          " +
"  </BASEINFO>                                                 " +
"  <{0}>                                          " +
"    <DUIZHAOLX>1</DUIZHAOLX>                     " +
"    <XIANGMUXH>{4}</XIANGMUXH>            " +
"    <XIANGMUCDDM>{5}</XIANGMUCDDM>         " +
"    <XIANGMUMC>{6}</XIANGMUMC>  " +
"    <XIANGMUGG></XIANGMUGG>                     " +
"    <XIANGMUJX></XIANGMUJX>                     " +
"    <XIANGMUDW></XIANGMUDW>                " +
"    <XIANGMUCDMC></XIANGMUCDMC>            " +
"    <DANJIA></DANJIA>                                    " +
"    <YIBAOXMXH>{7}</YIBAOXMXH>                     " +
"    <QIYONGRQ>{3:yyyy-MM-dd}</QIYONGRQ>       " +
"  </{0}>                                        " +
"</{0}_IN>";

        /// <summary>
        /// 疾病代码对照:[操作员代码、操作员姓名、操作日期、医院编码、医院名称、医保编码]
        /// </summary>
        public const string JBDMDZ = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<{0}_IN>                                        " +
"  <BASEINFO>                                                " +
"    <CAOZUOYDM>{1}</CAOZUOYDM>       " +
"    <CAOZUOYXM>{2}</CAOZUOYXM>     " +
"    <CAOZUORQ>{3:yyyy-MM-dd}</CAOZUORQ>     " +
"    <FENYUANDM>0</FENYUANDM>                " +
"    <XITONGBS>1</XITONGBS>                       " +
"  </BASEINFO>                                               " +
"  <{0}>                                            " +
"    <DUIZHAOLX>1</DUIZHAOLX>                  " +
"    <JIBINGDM>{4}</JIBINGDM>            " +
"    <JIBINGMC>{5}</JIBINGMC>          " +
"    <ICDM></ICDM>                                          " +
"    <YIBAOJBDM>{6}</YIBAOJBDM>       " +
"  </{0}>                                          " +
"</{0}_IN>";

        /// <summary>
        /// 目录匹配删除:[操作员代码、操作员姓名、操作日期、项目序号、产地代码]
        /// </summary>
        public const string MLDMSC = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<{0}_IN>                                     " +
"  <BASEINFO>                                                  " +
"    <CAOZUOYDM>{1}</CAOZUOYDM>         " +
"    <CAOZUOYXM>{2}</CAOZUOYXM>                " +
"    <CAOZUORQ>{3:yyyy-MM-dd}</CAOZUORQ>      " +
"    <FENYUANDM>0</FENYUANDM>                  " +
"    <XITONGBS>1</XITONGBS>                         " +
"  </BASEINFO>                                                 " +
"  <{0}>" +
"    <DUIZHAOLX>2</DUIZHAOLX>                    " +
"    <XIANGMUXH>{4}</XIANGMUXH>            " +
"    <XIANGMUCDDM>{5}</XIANGMUCDDM>            " +
"  </{0}>                                        " +
"</{0}_IN>";

        /// <summary>
        /// 目录匹配删除:[操作员代码、操作员姓名、操作日期、医院序号]
        /// </summary>
        public const string JBDMSC = "<?xml version=\"1.0\" encoding=\"utf-8\" ?>" +
"<{0}_IN>                                     " +
"  <BASEINFO>                                                  " +
"    <CAOZUOYDM>{1}</CAOZUOYDM>         " +
"    <CAOZUOYXM>{2}</CAOZUOYXM>                " +
"    <CAOZUORQ>{3:yyyy-MM-dd}</CAOZUORQ>      " +
"    <FENYUANDM>0</FENYUANDM>                  " +
"    <XITONGBS>1</XITONGBS>                         " +
"  </BASEINFO>                                                 " +
"  <{0}>" +
"    <DUIZHAOLX>2</DUIZHAOLX>                    " +
"    <JIBINGDM>{4}</JIBINGDM>            " +
"  </{0}>                                        " +
"</{0}_IN>";
    }
}